package common

// AppendEntries is a common format for external Raft Node messages.
type AppendEntries struct {
	AEId int

	TermId int

	Peers []string

	LeaderId int

	Log []string

	PreLogIndex int

	PreLogTerm int

	LeaderCommit int

	EventType uint8
}

// AppendEntriesResponse is common format for external Raft node message.
// for reply Master Node.
type AppendEntriesResponse struct {
	AEId   int
	TermId int
	State  uint8
}
